package com.school.service;

import com.school.dao.AboutDAO;
import com.school.entity.About;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AboutService {
    @Autowired
    private AboutDAO dao;

    @Override
    public String toString() {
        return "AboutService{" +
                "dao=" + dao +
                '}';
    }

    public About[] selectAll() {
        About[] abouts = dao.selectAll();
        return abouts;
    }

    public About selectOne(String about_name) {
        About about = dao.selectOne(about_name);
        return about;
    }


}
